﻿using PmSoft.Entity;
using static ManagementApi.Services.Authentication.LoginResultConstants;

namespace ManagementApi.Services.Authentication
{
    public class LoginResult
    {
        /// <summary>
        /// 访问token
        /// </summary>
        public string AccessToken { get; set; }

        /// <summary>
        /// token 类型
        /// </summary>
        public string TokenType { get; set; }

        /// <summary>
        /// 刷新token
        /// </summary>
        public string RefreshToken { get; set; }

        /// <summary>
        /// 过期时间(单位：毫秒)
        /// </summary>
        public long Expires { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public UserType Type { get; set; }

        /// <summary>
        /// 编辑token，用于信息完善
        /// </summary>
        public string EditToken { get; set; }

        /// <summary>
        /// 登录操作码
        /// </summary>
        public ActionCode ActionCode { get; set; }
    }
}